
form method = 'get'
  .well
	|营业日期：
	- if params[:check]
	  input type="text" data-behaviour='datepicker' name='start' value=params[:start] 
	- else 
	  input type="text" data-behaviour='datepicker' name='start' value=@start 
	button type='submit' name='check' 查询
  
  .panel.panel-default
    .panel-heading
      
    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 日期
	          th 台次
	          th 工时费
	          th 配件金额
	          th 合计金额
	          tr
	            td = @order_maintains.first.pay_datetime.strftime("%Y-%m-%d") rescue ""
	            td = @order_maintains.size rescue ""
	            td = @order_maintain_total-@order_maintain_cost rescue ""
	            td = @order_maintain_cost rescue ""
	            td = @order_maintain_total rescue ""



javascript:
  $(document).on("focus", "[data-behaviour~='datepicker']", function(e){
    $(this).datepicker({"format": "yyyy-mm-dd", "weekStart": 1, "autoclose": true, "language": "zh-CN", "todayHighlight": true});
  });